!#TR1# HONG KONG in virtual lab
enable
conf t
hostname TR1



no logging console


no aaa new-model

ip cef


!

no ip domain lookup

ip host THYME 203.133.248.8

ip host GOOGLE 8.8.8.8

no ipv6 source-route

ipv6 host THYME 2401:2000:6660::8

ipv6 host GOOGLE 2001:4860:4860::8888

ipv6 unicast-routing

ipv6 cef


!

interface GigabitEthernet2 
  description Link to AS10
 
  ip address 100.121.1.1 255.255.255.252
 
  ipv6 address 2001:18:0:10::/127

  no shut
!


interface GigabitEthernet5
  description Link to H1 (and to the world)
 
  ip address 100.121.0.1 255.255.255.252 secondary
 
  ip address 192.168.30.235 255.255.255.0
 
  negotiation auto
 
  ipv6 address 2001:18::/127
 
  ipv6 address 2001:DB8:100::235/64
 
  ipv6 nd prefix default no-advertise
 
  ipv6 nd ra suppress all

  no shut
!

interface Loopback 0
  description imitate THYME for ping
  ip address 203.133.248.8
 255.255.255.255
  ipv6 address 2401:2000:6660::8


/128
  no shut
interface Loopback 1
  description imitate GOOGLE for ping
  ip address 8.8.8.8
 255.255.255.255
  ipv6 address 2001:4860:4860::8888
/128
  no shut
!
router bgp 121
 
  bgp log-neighbor-changes
 
  bgp deterministic-med
 
  no bgp default ipv4-unicast
 
  neighbor 2001:18::1 remote-as 122
 
    neighbor 2001:18::1 description eBGP with TR2
 
    neighbor 2001:18::1 password 7 01100F175804
 
  neighbor 2001:18:0:10::1 remote-as 10
 
    neighbor 100.121.0.2 remote-as 122
 
    neighbor 100.121.0.2 description eBGP with TR2
 
    neighbor 100.121.0.2 password 7 1511021F0725
 
  neighbor 100.121.1.2 remote-as 10
 
!
address-family ipv4
  
  network 100.121.0.0 mask 255.255.0.0
  
  neighbor 100.121.0.2 activate
  
  neighbor 100.121.1.2 activate
  
  neighbor 100.121.1.2 default-originate
  
  distance bgp 200 200 200
 
exit-address-family
 
!
 
address-family ipv6
  
  network 2001:18::/32
  
  neighbor 2001:18::1 activate
  
  neighbor 2001:18:0:10::1 activate
  
  neighbor 2001:18:0:10::1 default-originate
  
  distance bgp 200 200 200
 
exit-address-family

!

ip forward-protocol nd

!

no ip http server

no ip http secure-server

ip route 0.0.0.0 0.0.0.0 192.168.30.254

ip route 100.121.0.0 255.255.0.0 Null0

!

ipv6 route 2001:18::/32 Null0

ipv6 route ::/0 2001:DB8:100::254

!

line con 0
 
  transport preferred none
 

line vty 0 4
 
  login
  transport preferred none

!


end

!
wr
!
